<@master template="common/default" title="新增流程模板">
<div class="detailsBox">
	<h3>
		<i class="jtIco"></i>新增流程模板
	</h3>
	<form action="/process/template/save" method="post" class="action-ajax-form">
		<div class="detaiTab">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
						<td width="15%" align="right" class="bg">模板名称：</td>
						<td><input type="text" name="processName"
							value="${processTemplate.processName}" class="tabInp action-valid-field" style="width:250px">
							<span class="action-field-error" for="userName"></span>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">模板种类：</td>
						<td><@select dataSouceType="processCatagory" name="catagory" id="processCatagory" value="${processTemplate.catagory}"/>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">模板类型：</td>
						<td>
							<@select dataSouceType="processType" name="processType" id="processType" value="${processTemplate.processType}"/>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">描述：</td>
						<td><input type="text" name="processDes"
							value="${processTemplate.processDes}" class="tabInp action-valid-field" style="width:350px">
							<span class="action-field-error" for="account"></span>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">系统模块：</td>
						<td> <select id="roleId" name="systemModule">
								<option value="-1" selected ="selected">--请选择--</option>
								<option value="O2O">O2O</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right" class="bg">流程单号前缀：</td>
						<td><input type="text" name="processPrefix"
							value="${processTemplate.processPrefix}" class="tabInp action-valid-field" style="width:350px">
							<span class="action-field-error" for="account"></span>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<table>
	</div>
		<input type="hidden" name="processNo" value="${processTemplate.processNo}"/>
		<input type="submit" class="btn_auto_30 btn_blue" value="保存">&nbsp;
		<a class="btn_auto_30 btn_blue" href="<@url value='/process/template/list'/>">取消</a>
		<span style="color: red;">${massege}</span>
</form>
<input id="systemModuleHidden" type="hidden" value="${processTemplate.systemModule}"/>
<input id="processTypeHidden" type="hidden" value="${processTemplate.processType}"/>
</div>
</@master>
<@js>
	function render(){
		$('#roleId').val($('#systemModuleHidden').val());
	}
	render();
</@js>
<@jsRender/>